//
//  PaperQuestionOption.m
//  DoingPaper
//
//  Created by zhuxuhong on 16/7/29.
//  Copyright © 2016年 zhuxuhong. All rights reserved.
//

#import "PaperQuestionOption.h"

@implementation PaperQuestionOption

-(instancetype)initWithDict: (NSDictionary*)dict{
    if (self = [self init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
}

-(NSString *)optionName{
    return [NSString stringWithFormat:@"%@、%@",_optionIndex, _text];
}

//getters
-(NSString *)text{
    NSString *html = [NSString stringWithFormat:@"%@%@、%@%@",@"<html><body><div id=\"content\">",_optionIndex, _text,@"</div></body></html>"];
//        NSLog(@"html: %@",html);
    return html;
}

@end
